package com.yyge.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * (RoleMenu)实体类
 *
 * @author yyge
 * @since 2023-05-07 13:49:57
 */
public class RoleMenu {
    
    private Integer id;
    
    private Integer roleid;
    
    private Menu menu;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Menu getMenu() {
        return menu;
    }

    public void setMenu(Menu menu) {
        this.menu = menu;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoleMenu roleMenu = (RoleMenu) o;
        return Objects.equals(id, roleMenu.id) && Objects.equals(roleid, roleMenu.roleid) && Objects.equals(menu, roleMenu.menu);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, roleid, menu);
    }

    @Override
    public String toString() {
        return "RoleMenu{" +
                "id=" + id +
                ", roleid=" + roleid +
                ", menuid=" + menu +
                '}';
    }
}

